package com.dx.spring6_15.outDatasource;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	
	public static void main(String[] args) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("com/dx/spring6_15/outDatasource/outDatasourceApplicationContext.xml");
		
		DataSource dataSource1 = (DataSource) ctx.getBean("dataSource1");
		System.out.println(dataSource1);
		
		DataSource1 dataSource2 = (DataSource1) ctx.getBean("dataSource2");
		System.out.println(dataSource2);
		
	}
}
